package updown.domain;

import lombok.Data;

@Data
public class ResultVo {
	private Integer retCode = 1;
	private String msg = "success";
	private Object data;
	private String queue = "";
	
	public ResultVo(){
		
	}
	
	public ResultVo(Object data){
		this.data = data;
	}
	
	public ResultVo(String msg){
		this.retCode = 0;
		this.msg = msg;
	}

	public ResultVo(Integer retCode, String msg) {
		this.msg = msg;
		this.retCode = retCode;
	}
	
	public ResultVo(Integer retCode, String msg, Object data) {
		this.msg = msg;
		this.retCode = retCode;
		this.data = data;
	}

	public ResultVo(Integer retCode, String msg, Object data, String queue) {
		this.msg = msg;
		this.retCode = retCode;
		this.data = data;
		this.queue = queue;
	}
	
	public String toString(){
		return "[ResultVo] "
                + "retCode:" + retCode
				+ " .msg:"   + msg
				+ " .data:"  + data
				+ " .queue:" + queue;
	}
}
